/* 
 *  Copyright (c) 2011—2013 Panguso.com. All rights reserved. 
 *  File Name:  PropertiesReaderServicesImpl.java                                      
 *  File Contents Outline :  属性读取
 *  File  Create Date:   2012年7月30日
 *  File Version#: Revision#: #1                  
 *  File  Latest Modify Date : 2013年1月16日
 *  File Author :  bachuan@panguso.com
 */

package cn.edu.thu.log.web.service.impl;
import cn.edu.thu.log.web.service.PropertiesReaderServices;
import globalparameter.propertiesReader;


public class PropertiesReaderServicesImpl implements PropertiesReaderServices{
    private static  PropertiesReaderServices singleton = null;
    private propertiesReader propertiesreader ;
    private   PropertiesReaderServicesImpl(){
        propertiesreader = new propertiesReader();
    }
    public synchronized static PropertiesReaderServices instance(){
        if(singleton == null ){
            singleton = new PropertiesReaderServicesImpl();
        }
        return singleton;        
    }
    @Override
    public String getProperties(String key) {
        return propertiesreader.getProperties(key);        
    }
    
}
